package entity

type QuanxiRecord struct {
	Id         int64  `gorm:"column:id;primary_key" json:"id"`
	UserId     string `gorm:"column:user_id;type:varchar(255);not null" json:"user_id"`
	Status     int    `gorm:"column:status;type:integer;not null" json:"status"`
	AnswerType int    `gorm:"column:answer_type;type:integer;not null" json:"answer_type"`
	AnswerName string `gorm:"column:answer_name;type:varchar(255);not null" json:"answer_name"`
	Select     string `gorm:"column:select;type:integer;not null" json:"select"`
	QuestionId int64  `gorm:"column:question_id;type:bigint;not null" json:"question_id"`
	CreatedAt  int64  `gorm:"column:created_at;type:bigint;not null" json:"created_at"`
	UpdatedAt  int64  `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
}

func (q *QuanxiRecord) TableName() string {
	return "quanxi_records"
}
